//
//  CUserPageCtrl.h
//  HCHK_iphone
//
//  Created by yilong zhang on 11-12-19.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CRootCtrlManager.h"
#import "CSearchView.h"
#import "CTopBarView.h"
#import "CCondition.h"

@protocol OperationDelegate;

@interface CSearchPageCtrl : UIViewController <SearchViewDelegate, TopBarDelegate, OperationDelegate, UITableViewDelegate, UITableViewDataSource>

//topbar
@property (nonatomic, assign) CTopBarView           *m_TopBar;

@property (nonatomic, assign) CSearchView           *m_SearchView;
@property (nonatomic, assign) CSearchConditionView  *m_ConditonView;
@property (nonatomic, retain) NSString              *m_Value;
@property (nonatomic, assign) UIButton              *m_Cancel;
@property (nonatomic, assign) UIView                *m_BgView;

+(CSearchPageCtrl*)DefaultSearchPage;
+(void)DestroySearchPage;

-(void)OnCancelBtnDown:(UIButton*)sender;

//topbar
-(void)OnTopBarDown:(UIButton*)sender;

//self
-(void)ShowSearchPageCtrl;
-(void)DidSearchViewShown;
-(void)HiddenSearchPageCtrl;
-(void)DidSearchViewHidden;

-(void)CommitSearchRequest:(NSString*)value;
-(void)DidReceiveSearchRets:(NSDictionary*)data Flag:(id)flag;

@end
